package com.spboot.tx.pojo;

import com.baomidou.mybatisplus.annotation.*;
import com.jntoo.db.*;
import java.io.Serializable;
import java.util.*;

@TableName("jianyi")
public class Jianyi implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(type = IdType.AUTO)
    private Integer id;

    private Integer wenjuanid;

    private String zhuti;

    private String yisheng;

    private Integer defenxiaxian;

    private Integer defenshangxian;

    private String cankaoneirong;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getWenjuanid() {
        return wenjuanid;
    }

    public void setWenjuanid(Integer wenjuanid) {
        this.wenjuanid = wenjuanid == null ? 0 : wenjuanid;
    }

    public String getZhuti() {
        return zhuti;
    }

    public void setZhuti(String zhuti) {
        this.zhuti = zhuti == null ? "" : zhuti.trim();
    }

    public String getYisheng() {
        return yisheng;
    }

    public void setYisheng(String yisheng) {
        this.yisheng = yisheng == null ? "" : yisheng.trim();
    }

    public Wxuser getYishenguser() {
        return DB.name(Wxuser.class).where("id", yisheng).find();
    }

    public Integer getDefenxiaxian() {
        return defenxiaxian;
    }

    public void setDefenxiaxian(Integer defenxiaxian) {
        this.defenxiaxian = defenxiaxian == null ? 0 : defenxiaxian;
    }

    public Integer getDefenshangxian() {
        return defenshangxian;
    }

    public void setDefenshangxian(Integer defenshangxian) {
        this.defenshangxian = defenshangxian == null ? 0 : defenshangxian;
    }

    public String getCankaoneirong() {
        return cankaoneirong;
    }

    public void setCankaoneirong(String cankaoneirong) {
        this.cankaoneirong = cankaoneirong == null ? "" : cankaoneirong.trim();
    }
}
